// 登录请求成功 封装 token本地存储
const key = 'my-token'
// 按需导出
export const setToken = (newToken) => {
  localStorage.setItem(key, newToken)
}

export const getToken = () => {
  localStorage.getItem(key)
}
export const delToken = () => {
  localStorage.removeItem(key)
}
